<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: src/logagent-log.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">logagent-log.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="logagent-log_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5cc1ee99bd6a22cf8f0462c3e027b29b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#a5cc1ee99bd6a22cf8f0462c3e027b29b">LOGAGENT_LOG_DEBUG</a>(x, ...)&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>, __FUNCTION__, x, __VA_ARGS__)</td></tr>
<tr class="separator:a5cc1ee99bd6a22cf8f0462c3e027b29b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7e0a256a5ec3cc192661eb72e6b5b35"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#ad7e0a256a5ec3cc192661eb72e6b5b35">LOGAGENT_LOG_INFO</a>(x, ...)&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>, __FUNCTION__, x, __VA_ARGS__)</td></tr>
<tr class="separator:ad7e0a256a5ec3cc192661eb72e6b5b35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4d65d5af9f43912f231be1268767422"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#ae4d65d5af9f43912f231be1268767422">LOGAGENT_LOG_WARN</a>(x, ...)&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a99c1e5c8e6d557f3993b9ab54a0107f4">LOG_LEVEL_WARN</a>, __FUNCTION__, x, __VA_ARGS__)</td></tr>
<tr class="separator:ae4d65d5af9f43912f231be1268767422"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fe88bb4b56d14647a65284517b4fe55"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#a7fe88bb4b56d14647a65284517b4fe55">LOGAGENT_LOG_ERROR</a>(x, ...)&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>, __FUNCTION__, x, __VA_ARGS__)</td></tr>
<tr class="separator:a7fe88bb4b56d14647a65284517b4fe55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4578a6c070b24c4343cfada7eab71e4d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#a4578a6c070b24c4343cfada7eab71e4d">LOGAGENT_LOG_FATAL</a>(x, ...)&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a779dc8dd26898fb0f88cd5f6e02ba1e5">LOG_LEVEL_FATAL</a>, __FUNCTION__, x, __VA_ARGS__)</td></tr>
<tr class="separator:a4578a6c070b24c4343cfada7eab71e4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:afe31f2e1c51532a8c2ebfcebb349cab0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0">ENUM_LOG_LEVEL</a> { <br />
&#160;&#160;<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>, 
<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>, 
<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a99c1e5c8e6d557f3993b9ab54a0107f4">LOG_LEVEL_WARN</a>, 
<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>, 
<br />
&#160;&#160;<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a779dc8dd26898fb0f88cd5f6e02ba1e5">LOG_LEVEL_FATAL</a>
<br />
 }</td></tr>
<tr class="separator:afe31f2e1c51532a8c2ebfcebb349cab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad9086bf07a151cb69dc3ad145a51febe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a> (int level, const char *function, const char *format,...)</td></tr>
<tr class="separator:ad9086bf07a151cb69dc3ad145a51febe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a5cc1ee99bd6a22cf8f0462c3e027b29b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cc1ee99bd6a22cf8f0462c3e027b29b">&#9670;&nbsp;</a></span>LOGAGENT_LOG_DEBUG</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGAGENT_LOG_DEBUG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a538b2b6e011479d408ecd2be0f6d6177">LOG_LEVEL_DEBUG</a>, __FUNCTION__, x, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7fe88bb4b56d14647a65284517b4fe55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fe88bb4b56d14647a65284517b4fe55">&#9670;&nbsp;</a></span>LOGAGENT_LOG_ERROR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGAGENT_LOG_ERROR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a5b40f003febbc3b535649d63f4b8a44f">LOG_LEVEL_ERROR</a>, __FUNCTION__, x, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4578a6c070b24c4343cfada7eab71e4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4578a6c070b24c4343cfada7eab71e4d">&#9670;&nbsp;</a></span>LOGAGENT_LOG_FATAL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGAGENT_LOG_FATAL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a779dc8dd26898fb0f88cd5f6e02ba1e5">LOG_LEVEL_FATAL</a>, __FUNCTION__, x, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad7e0a256a5ec3cc192661eb72e6b5b35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7e0a256a5ec3cc192661eb72e6b5b35">&#9670;&nbsp;</a></span>LOGAGENT_LOG_INFO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGAGENT_LOG_INFO</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0aedee1e3159bfe7d918b6e29873c5aee4">LOG_LEVEL_INFO</a>, __FUNCTION__, x, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae4d65d5af9f43912f231be1268767422"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4d65d5af9f43912f231be1268767422">&#9670;&nbsp;</a></span>LOGAGENT_LOG_WARN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOGAGENT_LOG_WARN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="logagent-log_8h.html#ad9086bf07a151cb69dc3ad145a51febe">logagent_log_write</a>(<a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0a99c1e5c8e6d557f3993b9ab54a0107f4">LOG_LEVEL_WARN</a>, __FUNCTION__, x, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="afe31f2e1c51532a8c2ebfcebb349cab0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe31f2e1c51532a8c2ebfcebb349cab0">&#9670;&nbsp;</a></span>ENUM_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="logagent-log_8h.html#afe31f2e1c51532a8c2ebfcebb349cab0">ENUM_LOG_LEVEL</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="afe31f2e1c51532a8c2ebfcebb349cab0a538b2b6e011479d408ecd2be0f6d6177"></a>LOG_LEVEL_DEBUG&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afe31f2e1c51532a8c2ebfcebb349cab0aedee1e3159bfe7d918b6e29873c5aee4"></a>LOG_LEVEL_INFO&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afe31f2e1c51532a8c2ebfcebb349cab0a99c1e5c8e6d557f3993b9ab54a0107f4"></a>LOG_LEVEL_WARN&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afe31f2e1c51532a8c2ebfcebb349cab0a5b40f003febbc3b535649d63f4b8a44f"></a>LOG_LEVEL_ERROR&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afe31f2e1c51532a8c2ebfcebb349cab0a779dc8dd26898fb0f88cd5f6e02ba1e5"></a>LOG_LEVEL_FATAL&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ad9086bf07a151cb69dc3ad145a51febe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9086bf07a151cb69dc3ad145a51febe">&#9670;&nbsp;</a></span>logagent_log_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void logagent_log_write </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>logagent log write function </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">level</td><td>log level </td></tr>
    <tr><td class="paramname">function</td><td>function macros </td></tr>
    <tr><td class="paramname">format</td><td>the output string format </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
